package com.shure.surdes.modules.survey.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.shure.surdes.common.base.BaseEntity;
import lombok.Data;

/**
 * 问卷选项对象 tb_options
 *
 * @author Shure
 * @date 2021-10-18
 */
@Data
@TableName("tb_options")
public class Options extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 选项主键
     */
    @TableId(type = IdType.AUTO)
    @JsonSerialize(using = ToStringSerializer.class)
    private Long optionId;

    /**
     * 问题主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long questionId;

    /**
     * 选项值
     */
    private String optionCode;

    /**
     * 选项文本
     */
    private String optionText;

    /**
     * 选项序号
     */
    private Integer optionNo;

    /**
     * 逻辑隐藏题
     */
    private String hideQuestion;

    /**
     * 逻辑显示题
     */
    private String showQuestion;

    /**
     * 是否扩展填空（1：是，0：否）
     */
    private String isExtend;

    /**
     * 显示逻辑比较符
     */
    private String logicSymbol;

    /**
     * 问卷主键
     */
    @JsonSerialize(using = ToStringSerializer.class)
    private Long surveyId;


}
